
public class card {
    //成员变量
    public int rank;//牌面值
    public String suit;//花色

    //构造方法
    public card(int rank, String suit) {
        this.rank = rank;
        this.suit = suit;
    }

    //重写toString
    @Override
    public String toString() {
        return "{"+ rank + "," + suit+ '}';
    }
}
